<?php

return [
    'menu' => [
        'custom' => [
            'name' => '用户管理',
            'ico' => 'layui-icon-home',
            'sub' => [
                'index' => ['name' => '用户管理', 'uri' => '/custom/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'add' => ['name' => '添加用户', 'uri' => '/custom/add', 'show' => false, 'method' => 'get|post'],
                'del' => ['name' => '删除用户', 'uri' => '/custom/del', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'goods' => [
            'name' => '物料管理',
            'ico' => 'layui-icon-home',
            'sub' => [
                'goods' => ['name' => '物料管理', 'uri' => '/goods/goods', 'show' => true, 'method' => 'get'],  //index 方法名
                'goods_add' => ['name' => '添加物料', 'uri' => '/goods/goods_add', 'show' => false, 'method' => 'get|post'],
                'goods_add2' => ['name' => '添加赠品', 'uri' => '/goods/goods_add2', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true,
        ],
        'admin' => [
            'name' => '管理列表',
            'ico' => 'layui-icon-user',
            'sub' => [
                'index' => ['name' => '管理列表', 'uri' => '/admin/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'input' => ['name' => '添加管理', 'uri' => '/admin/input', 'show' => false, 'method' => 'get|post'],
                'del' => ['name' => '管理删除', 'uri' => '/admin/del', 'show' => false, 'method' => 'get|post'],
                'login_log' => ['name' => '登录日志', 'uri' => '/admin/login_log', 'show' => true, 'method' => 'get']
            ],
            'show' => true,
        ],

    ],
    'sonsmenu' => ['/custom/index', '/custom/customlog', '/custom/add']
];
